;
(function () {
    System.register(['./SimpleDialog.vue_vue_type_script_setup_true_lang-legacy-8tjYmIZV.js', './index-legacy-BBSVeb5I.js', './IconButton.vue_vue_type_script_setup_true_lang-legacy-jwPT8TzR.js', './job-legacy-CNDgX1kt.js', './SimpleCollapse.vue_vue_type_script_setup_true_lang-legacy-WngZx8ev.js', './SimpleInput.vue_vue_type_script_setup_true_lang-legacy-CRUKVKwE.js', './model-legacy-BU3w3-Vj.js', './useCopy-legacy-BVMLXgLP.js', './vue-codemirror.esm-legacy-kFkrhprE.js'], function (exports, module) {
        'use strict';

        var _sfc_main$c, defineComponent, createElementBlock, normalizeClass, renderSlot, openBlock, mergeModels,
            useModel, createBlock, createSlots, withCtx, createBaseVNode, ref, onMounted, watch, createVNode,
            createCommentVNode, createStaticVNode, toDisplayString, createTextVNode, resolveComponent, unref, isRef,
            Fragment, renderList, useRouter, useDebounceFn, computed, api, useRoute, tipShow, _sfc_main$b, _sfc_main$a,
            createJobAndExecute, _sfc_main$6, _sfc_main$7, _sfc_main$9, _sfc_main$5, getModelList, useCopy, _sfc_main$8,
            T, json, isJson;
        return {
            setters: [function (module) {
                _sfc_main$c = module._;
            }, function (module) {
                defineComponent = module.d;
                createElementBlock = module.a;
                normalizeClass = module.n;
                renderSlot = module.I;
                openBlock = module.o;
                mergeModels = module.J;
                useModel = module.m;
                createBlock = module.c;
                createSlots = module.X;
                withCtx = module.p;
                createBaseVNode = module.b;
                ref = module.e;
                onMounted = module.K;
                watch = module.w;
                createVNode = module.q;
                createCommentVNode = module.k;
                createStaticVNode = module.Y;
                toDisplayString = module.t;
                createTextVNode = module.v;
                resolveComponent = module.r;
                unref = module.u;
                isRef = module.y;
                Fragment = module.F;
                renderList = module.j;
                useRouter = module.g;
                useDebounceFn = module.Z;
                computed = module.f;
                api = module.G;
                useRoute = module.h;
                tipShow = module.$;
                _sfc_main$b = module.s;
            }, function (module) {
                _sfc_main$a = module._;
            }, function (module) {
                createJobAndExecute = module.c;
            }, function (module) {
                _sfc_main$6 = module.b;
                _sfc_main$7 = module.a;
                _sfc_main$9 = module._;
            }, function (module) {
                _sfc_main$5 = module._;
            }, function (module) {
                getModelList = module.g;
            }, function (module) {
                useCopy = module.u;
                _sfc_main$8 = module._;
            }, function (module) {
                T = module.T;
                json = module.j;
                isJson = module.a;
            }],
            execute: function execute() {
                var _sfc_main$4 = /* @__PURE__ */defineComponent({
                    __name: "SimpleNote",
                    props: {
                        type: {
                            default: "default"
                        }
                    },
                    setup: function setup(__props) {
                        return function (_ctx, _cache) {
                            return openBlock(), createElementBlock("div", {
                                class: normalizeClass(["rounded-md bg-opacity-10 px-4 py-2", {
                                    "text-primary bg-primary": _ctx.type === "primary",
                                    "text-info bg-info": _ctx.type === "info",
                                    "text-warn bg-warn": _ctx.type === "warn",
                                    "text-error bg-error": _ctx.type === "error",
                                    "color-fade bg-gray-400": _ctx.type === "default"
                                }])
                            }, [renderSlot(_ctx.$slots, "default")], 2);
                        };
                    }
                });
                var _sfc_main$3 = /* @__PURE__ */defineComponent({
                    __name: "SimpleSearch",
                    props: /* @__PURE__ */mergeModels({
                        placeholder: {
                            default: "搜索"
                        }
                    }, {
                        "modelValue": {},
                        "modelModifiers": {}
                    }),
                    emits: ["update:modelValue"],
                    setup: function setup(__props) {
                        var search = useModel(__props, "modelValue");
                        return function (_ctx, _cache) {
                            var _component_SimpleInput = _sfc_main$5;
                            return openBlock(), createBlock(_component_SimpleInput, {
                                modelValue: search.value,
                                "onUpdate:modelValue": _cache[1] || (_cache[1] = function ($event) {
                                    return search.value = $event;
                                }),
                                placeholder: _ctx.placeholder
                            }, createSlots({
                                prefix: withCtx(function () {
                                    return [_cache[2] || (_cache[2] = createBaseVNode("div", {
                                        class: "i-ph:magnifying-glass-duotone"
                                    }, null, -1))];
                                }),
                                _: 2
                            }, [search.value ? {
                                name: "suffix",
                                fn: withCtx(function () {
                                    return [createBaseVNode("i", {
                                        class: "i-carbon-close-filled cursor-pointer text-sm op50",
                                        onClick: _cache[0] || (_cache[0] = function ($event) {
                                            return search.value = "";
                                        })
                                    })];
                                }),
                                key: "0"
                            } : void 0]), 1032, ["modelValue", "placeholder"]);
                        };
                    }
                });
                var _hoisted_1$2 = {
                    class: "relative flex flex-col gap-4 p-6"
                };
                var _hoisted_2$2 = {
                    class: "flex items-center gap-3"
                };
                var _hoisted_3$1 = {
                    class: "flex cursor-pointer items-center justify-between rounded-md bg-gray/20 px3 py2 hover:bg-gray/30"
                };
                var _hoisted_4$1 = {
                    key: 0,
                    class: "color-fade"
                };
                var _hoisted_5 = {
                    key: 1,
                    class: "color-base op80"
                };
                var _hoisted_6 = {
                    class: "bg-base py2"
                };
                var _hoisted_7 = {
                    key: 1,
                    class: "flex flex-col"
                };
                var _hoisted_8 = {
                    class: "px-2"
                };
                var _hoisted_9 = {
                    key: 0,
                    class: "max-h-60 flex-1 overflow-y-overlay px-2"
                };
                var _hoisted_10 = ["onClick"];
                var _hoisted_11 = {
                    key: 0,
                    class: "i-ph:check ml-4 flex-none text-primary"
                };
                var _hoisted_12 = {
                    key: 0,
                    class: "flex flex-col gap-1 rounded-md bg-primary/6 p-3"
                };
                var _sfc_main$2 = /* @__PURE__ */defineComponent({
                    __name: "model-select",
                    props: /* @__PURE__ */mergeModels({
                        initModelId: {}
                    }, {
                        "modelValue": {},
                        "modelModifiers": {}
                    }),
                    emits: ["update:modelValue"],
                    setup: function setup(__props) {
                        var props = __props;
                        var selectedModel = useModel(__props, "modelValue");
                        var showOptions = ref(false);
                        var search = ref("");
                        var loading = ref(false);
                        var models = ref([]);
                        var filtered = ref([]);

                        function getModels() {
                            var params = {
                                query: 1,
                                pageSize: 800
                            };
                            loading.value = true;
                            getModelList(params).then(function (res) {
                                models.value = res.data;
                                if (props.initModelId) {
                                    selectedModel.value = models.value.find(function (m) {
                                        return m.id === props.initModelId;
                                    });
                                }
                            }).catch(function () {
                                models.value = [];
                            }).finally(function () {
                                loading.value = false;
                            });
                        }

                        onMounted(function () {
                            getModels();
                        });
                        var triggerFilter = useDebounceFn(function () {
                            var _str = search.value.trim().toLowerCase();
                            if (!_str) {
                                filtered.value = models.value || [];
                            } else {
                                filtered.value = models.value ? models.value.filter(function (u) {
                                    var rawStr = "".concat(u.modelName || "").concat(u.description || "");
                                    return rawStr.toLowerCase().includes(_str);
                                }) : [];
                            }
                        }, 200);
                        watch([search, models], triggerFilter);

                        function selectModel(item) {
                            selectedModel.value = item;
                            showOptions.value = false;
                        }

                        function gotoCreateModel() {
                            var router = useRouter();
                            window.open(router.resolve({
                                name: "ModelCreate"
                            }).href, "_blank");
                        }

                        return function (_ctx, _cache) {
                            var _selectedModel$value3, _selectedModel$value4, _selectedModel$value5,
                                _selectedModel$value6, _selectedModel$value7;
                            var _component_Loading = _sfc_main$6;
                            var _component_SimpleSearch = _sfc_main$3;
                            var _component_Empty = _sfc_main$7;
                            var _component_VDropdown = resolveComponent("VDropdown");
                            return openBlock(), createElementBlock("div", _hoisted_1$2, [createBaseVNode("div", _hoisted_2$2, [_cache[2] || (_cache[2] = createStaticVNode('<div class="h-12 w-12 flex-center rounded-md bg-primary/20"><i class="i-ph:cube-duotone text-1.8rem text-primary"></i></div><div class="flex"><span class="mr-1 text-red-500">*</span><span class="font-600">选择模型</span></div>', 2)), createBaseVNode("div", {
                                class: normalizeClass(["ml-auto text-sm", selectedModel.value ? "green-badge" : "red-badge"])
                            }, toDisplayString(selectedModel.value ? "已选择" : "必选"), 3)]), createBaseVNode("div", {
                                class: "color-fade"
                            }, [_cache[3] || (_cache[3] = createTextVNode(" 请从模型库中选择一个模型，如果没有合适的，您也可以先 ")), createBaseVNode("a", {
                                class: "a-primary",
                                onClick: gotoCreateModel
                            }, " 创建模型 ")]), createVNode(_component_VDropdown, {
                                shown: unref(showOptions),
                                "onUpdate:shown": _cache[1] || (_cache[1] = function ($event) {
                                    return isRef(showOptions) ? showOptions.value = $event : null;
                                }),
                                "auto-size": "",
                                "popper-class": "no-arrow"
                            }, {
                                popper: withCtx(function () {
                                    var _unref;
                                    return [createBaseVNode("div", _hoisted_6, [unref(loading) ? (openBlock(), createBlock(_component_Loading, {
                                        key: 0,
                                        class: "!h-40"
                                    })) : (openBlock(), createElementBlock("div", _hoisted_7, [createBaseVNode("div", _hoisted_8, [createVNode(_component_SimpleSearch, {
                                        modelValue: unref(search),
                                        "onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) {
                                            return isRef(search) ? search.value = $event : null;
                                        }),
                                        class: "w-full"
                                    }, null, 8, ["modelValue"])]), _cache[5] || (_cache[5] = createBaseVNode("div", {
                                        class: "mb-1 mt-2 h-1px w-full bg-gray/20"
                                    }, null, -1)), (_unref = unref(filtered)) !== null && _unref !== void 0 && _unref.length ? (openBlock(), createElementBlock("ul", _hoisted_9, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(filtered), function (item) {
                                        var _selectedModel$value, _selectedModel$value2;
                                        return openBlock(), createElementBlock("li", {
                                            key: item.id,
                                            class: "w-full flex cursor-pointer items-center justify-between rounded-md hover:bg-hover px2 py1",
                                            onClick: function onClick($event) {
                                                return selectModel(item);
                                            }
                                        }, [createBaseVNode("span", {
                                            class: normalizeClass(((_selectedModel$value = selectedModel.value) === null || _selectedModel$value === void 0 ? void 0 : _selectedModel$value.id) === item.id ? "color-primary" : "color-fade")
                                        }, toDisplayString(item.modelName), 3), ((_selectedModel$value2 = selectedModel.value) === null || _selectedModel$value2 === void 0 ? void 0 : _selectedModel$value2.id) === item.id ? (openBlock(), createElementBlock("i", _hoisted_11)) : createCommentVNode("", true)], 8, _hoisted_10);
                                    }), 128))])) : (openBlock(), createBlock(_component_Empty, {
                                        key: 1,
                                        class: "h-20 flex-center"
                                    }))]))])];
                                }),
                                default: withCtx(function () {
                                    return [createBaseVNode("div", _hoisted_3$1, [!selectedModel.value ? (openBlock(), createElementBlock("span", _hoisted_4$1, "请选择模型")) : (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(selectedModel.value.modelName), 1)), _cache[4] || (_cache[4] = createBaseVNode("div", {
                                        class: "i-ph-caret-down op40"
                                    }, null, -1))])];
                                }),
                                _: 1
                            }, 8, ["shown"]), selectedModel.value ? (openBlock(), createElementBlock("ul", _hoisted_12, [createBaseVNode("li", null, [_cache[6] || (_cache[6] = createBaseVNode("label", {
                                class: "color-fade"
                            }, "模型名称：", -1)), createBaseVNode("span", null, toDisplayString((_selectedModel$value3 = selectedModel.value) === null || _selectedModel$value3 === void 0 ? void 0 : _selectedModel$value3.modelName), 1)]), createBaseVNode("li", null, [_cache[7] || (_cache[7] = createBaseVNode("label", {
                                class: "color-fade"
                            }, "模型描述：", -1)), createBaseVNode("span", null, toDisplayString(((_selectedModel$value4 = selectedModel.value) === null || _selectedModel$value4 === void 0 ? void 0 : _selectedModel$value4.description) || "--"), 1)]), createBaseVNode("li", null, [_cache[8] || (_cache[8] = createBaseVNode("label", {
                                class: "color-fade"
                            }, "模型类型：", -1)), createBaseVNode("span", null, toDisplayString((_selectedModel$value5 = selectedModel.value) === null || _selectedModel$value5 === void 0 ? void 0 : _selectedModel$value5.modelType), 1)]), createBaseVNode("li", null, [_cache[9] || (_cache[9] = createBaseVNode("label", {
                                class: "color-fade"
                            }, "模型应用范围：", -1)), createBaseVNode("span", null, toDisplayString(((_selectedModel$value6 = selectedModel.value) === null || _selectedModel$value6 === void 0 ? void 0 : _selectedModel$value6.scope) || "--"), 1)]), createBaseVNode("li", null, [_cache[10] || (_cache[10] = createBaseVNode("label", {
                                class: "color-fade"
                            }, "模型标签：", -1)), createBaseVNode("span", null, toDisplayString(((_selectedModel$value7 = selectedModel.value) === null || _selectedModel$value7 === void 0 ? void 0 : _selectedModel$value7.tags) || "--"), 1)])])) : createCommentVNode("", true)]);
                        };
                    }
                });
                var _hoisted_1$1 = {
                    class: "relative flex flex-col gap-4 p-6"
                };
                var _hoisted_2$1 = {
                    class: "flex items-center gap-3"
                };
                var exampleInfo = "// paramMeta \u6837\u4F8B\u5982\u4E0B\uFF1A\n[\n  {\"name\": \"user_id\", \"description\":\"\u7528\u6237\u6807\u8BC6\", \"demo\":\"1099\", \"type\":\"String\", \"mode\":\"equal\"},\n  {\"name\": \"time\", \"description\":\"\u65F6\u95F4\", \"demo\":\"2024-06-05 23:59:59\", \"type\":\"Date\", \"mode\": \"range\"}\n]\n\n// \u5219 param \u586B\u5199\u6837\u4F8B\u5982\u4E0B\uFF1A\n// [KEY] \u7684\u53D6\u503C\u6765\u81EA\u4E8E paramMeta \u4E2D name \u7684\u503C\n// [VALUE] \u7684\u53D6\u503C\u53D6\u51B3\u4E8E paramMeta \u4E2D mode \u7684\u7C7B\u578B\n// mode \u4E3A equal \u65F6\uFF0C[VALUE] \u4E3A\u5B57\u7B26\u4E32\n// mode \u4E3A range \u65F6\uFF0C[VALUE] \u4E3A\u5BF9\u8C61\uFF0C\u53EF\u5305\u62EC gt/gte/lt/lte \u7C7B\u578B\n{\n  \"[KEY]\": \"[VALUE]\",\n  \"user_id\":\"1099\",\n  \"time\":{\n    \"lt\":\"2024-06-05 23:59:59\",\n    \"gt\":\"2024-05-05 23:59:59\"\n  }\n}";
                var _sfc_main$1 = /* @__PURE__ */defineComponent({
                    __name: "params-input",
                    props: /* @__PURE__ */mergeModels({
                        model: {}
                    }, {
                        "modelValue": {},
                        "modelModifiers": {}
                    }),
                    emits: ["update:modelValue"],
                    setup: function setup(__props, _ref) {
                        var __expose = _ref.expose;
                        var props = __props;
                        var modelValue = useModel(__props, "modelValue");
                        var paramMeta = computed(function () {
                            var _props$model;
                            return ((_props$model = props.model) === null || _props$model === void 0 ? void 0 : _props$model.paramMeta) || [];
                        });
                        var required = computed(function () {
                            if (!paramMeta.value.length) return false;
                            if (paramMeta.value.some(function (u) {
                                return u.needed;
                            })) return true;
                            return false;
                        });

                        function validateParam() {
                            var _modelValue$value;
                            if (!required.value) return true;
                            var str = (_modelValue$value = modelValue.value) === null || _modelValue$value === void 0 ? void 0 : _modelValue$value.trim();
                            if (str === "") {
                                api.warn("请输入参数");
                                return false;
                            }
                            if (!isJson(str)) {
                                api.warn("请输入正确的 JSON 格式");
                                return false;
                            }
                            return true;
                        }

                        __expose({
                            validateParam: validateParam
                        });
                        var _useCopy = useCopy(),
                            copy = _useCopy.copy,
                            copied = _useCopy.copied;
                        var _useCopy2 = useCopy(),
                            copyMeta = _useCopy2.copy,
                            metaCopied = _useCopy2.copied;
                        return function (_ctx, _cache) {
                            var _unref2, _unref3;
                            var _component_ShikiCode = _sfc_main$8;
                            var _component_SimpleCollapse = _sfc_main$9;
                            return openBlock(), createElementBlock("div", _hoisted_1$1, [createBaseVNode("div", _hoisted_2$1, [_cache[3] || (_cache[3] = createBaseVNode("div", {
                                class: "h-12 w-12 flex-center rounded-md bg-purple/20"
                            }, [createBaseVNode("i", {
                                class: "i-ph:article-duotone text-1.8rem text-purple"
                            })], -1)), _cache[4] || (_cache[4] = createBaseVNode("div", {
                                class: "font-600"
                            }, " 填写参数 ", -1)), (_unref2 = unref(paramMeta)) !== null && _unref2 !== void 0 && _unref2.length ? (openBlock(), createElementBlock("div", {
                                key: 0,
                                class: normalizeClass([unref(required) ? "red-badge" : "gray-badge", "ml-auto text-sm"])
                            }, toDisplayString(unref(required) ? "必填" : "可选"), 3)) : createCommentVNode("", true)]), _cache[7] || (_cache[7] = createBaseVNode("div", {
                                class: "color-fade"
                            }, " 请输入 param 参数，需参考相关模型的 paramMeta 字段信息 ", -1)), createVNode(unref(T), {
                                modelValue: modelValue.value,
                                "onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) {
                                    return modelValue.value = $event;
                                }),
                                placeholder: "请输入，JSON 格式",
                                style: {
                                    background: "white",
                                    border: "1px solid #eee",
                                    overflowY: "auto",
                                    minHeight: "150px",
                                    maxHeight: "700px",
                                    fontSize: "0.9rem"
                                },
                                "indent-with-tab": true,
                                "tab-size": 2,
                                extensions: [unref(json)()]
                            }, null, 8, ["modelValue", "extensions"]), (_unref3 = unref(paramMeta)) !== null && _unref3 !== void 0 && _unref3.length ? (openBlock(), createBlock(_component_SimpleCollapse, {
                                key: 0
                            }, {
                                title: withCtx(function () {
                                    return _cache[5] || (_cache[5] = [createTextVNode(" paramMeta 信息参考 ")]);
                                }),
                                actions: withCtx(function () {
                                    return [createBaseVNode("button", {
                                        class: "a-primary",
                                        onClick: _cache[1] || (_cache[1] = function ($event) {
                                            return unref(copyMeta)(JSON.stringify(unref(paramMeta), null, 2));
                                        })
                                    }, toDisplayString(unref(metaCopied) ? "✓ 已复制" : "复制"), 1)];
                                }),
                                default: withCtx(function () {
                                    return [createVNode(_component_ShikiCode, {
                                        code: JSON.stringify(unref(paramMeta), null, 2),
                                        lang: "json",
                                        class: "text-sm"
                                    }, null, 8, ["code"])];
                                }),
                                _: 1
                            })) : createCommentVNode("", true), createVNode(_component_SimpleCollapse, null, {
                                title: withCtx(function () {
                                    return _cache[6] || (_cache[6] = [createTextVNode(" 查看填写样例 ")]);
                                }),
                                actions: withCtx(function () {
                                    return [createBaseVNode("button", {
                                        class: "a-primary",
                                        onClick: _cache[2] || (_cache[2] = function ($event) {
                                            return unref(copy)(exampleInfo);
                                        })
                                    }, toDisplayString(unref(copied) ? "✓ 已复制" : "复制"), 1)];
                                }),
                                default: withCtx(function () {
                                    return [createVNode(_component_ShikiCode, {
                                        code: exampleInfo,
                                        lang: "json",
                                        class: "text-sm"
                                    })];
                                }),
                                _: 1
                            })]);
                        };
                    }
                });
                var _hoisted_1 = {
                    class: "h-full w-full overflow-y-overlay p-4"
                };
                var _hoisted_2 = {
                    class: "mx-auto w-50% flex flex-col gap-6 rounded-lg bg-base px-10 py-8"
                };
                var _hoisted_3 = {
                    class: "relative w-full flex flex-col gap-6"
                };
                var _hoisted_4 = {
                    class: "mt-4 flex-center gap-4"
                };
                var _sfc_main = exports("default", /* @__PURE__ */defineComponent({
                    __name: "index",
                    setup: function setup(__props) {
                        var route = useRoute();
                        var modelIdFromModelPage = computed(function () {
                            return route.query.modelIdFromModelPage;
                        });
                        var paramsRef = ref();
                        var selectedModel = ref();
                        var inputOfParams = ref("");
                        var selectedCategory = ref();

                        function reset() {
                            selectedModel.value = void 0;
                            inputOfParams.value = "";
                            selectedCategory.value = void 0;
                        }

                        var jobSuccess = ref(false);

                        function handleSubmit() {
                            var _paramsRef$value;
                            if (!selectedModel.value) {
                                api.warn("请选择模型");
                                return;
                            }
                            if (!((_paramsRef$value = paramsRef.value) !== null && _paramsRef$value !== void 0 && _paramsRef$value.validateParam())) return;
                            var req = {
                                modelId: selectedModel.value.id,
                                param: JSON.parse(inputOfParams.value.trim())
                            };
                            createJobAndExecute(req).then(function () {
                                jobSuccess.value = true;
                            });
                        }

                        return function (_ctx, _cache) {
                            var _component_IconButton = _sfc_main$a;
                            var _component_SimpleNote = _sfc_main$4;
                            var _component_SimpleButton = _sfc_main$b;
                            var _component_RouterLink = resolveComponent("RouterLink");
                            var _component_SimpleDialog = _sfc_main$c;
                            return openBlock(), createElementBlock("div", _hoisted_1, [createBaseVNode("div", _hoisted_2, [_cache[8] || (_cache[8] = createBaseVNode("div", {
                                class: "text-1.2rem font-600"
                            }, " 任务创建 ", -1)), unref(tipShow).modelAnalysis ? (openBlock(), createBlock(_component_SimpleNote, {
                                key: 0,
                                class: "flex justify-between"
                            }, {
                                default: withCtx(function () {
                                    return [_cache[5] || (_cache[5] = createBaseVNode("div", null, [createBaseVNode("strong", null, "提示："), createTextVNode("分析任务旨在通过特定模型计算相关数据集，以获得分析结果。创建任务需要 2 个输入：模型、参数。 ")], -1)), createVNode(_component_IconButton, {
                                        class: "ml-4 flex-none text-1.2rem",
                                        "icon-class": "i-carbon-close",
                                        title: "关闭提示",
                                        onClick: _cache[0] || (_cache[0] = function ($event) {
                                            return unref(tipShow).modelAnalysis = false;
                                        })
                                    })];
                                }),
                                _: 1
                            })) : createCommentVNode("", true), createBaseVNode("div", _hoisted_3, [createVNode(_sfc_main$2, {
                                modelValue: unref(selectedModel),
                                "onUpdate:modelValue": _cache[1] || (_cache[1] = function ($event) {
                                    return isRef(selectedModel) ? selectedModel.value = $event : null;
                                }),
                                "init-model-id": unref(modelIdFromModelPage),
                                class: "w-full border border-base rounded-lg bg-primary/6"
                            }, null, 8, ["modelValue", "init-model-id"]), createVNode(_sfc_main$1, {
                                ref_key: "paramsRef",
                                ref: paramsRef,
                                modelValue: unref(inputOfParams),
                                "onUpdate:modelValue": _cache[2] || (_cache[2] = function ($event) {
                                    return isRef(inputOfParams) ? inputOfParams.value = $event : null;
                                }),
                                model: unref(selectedModel),
                                class: "w-full border border-base rounded-lg bg-purple/6"
                            }, null, 8, ["modelValue", "model"])]), createBaseVNode("div", _hoisted_4, [createVNode(_component_SimpleButton, {
                                class: "!h-10",
                                onClick: reset
                            }, {
                                default: withCtx(function () {
                                    return _cache[6] || (_cache[6] = [createTextVNode(" 重置 ")]);
                                }),
                                _: 1
                            }), createVNode(_component_SimpleButton, {
                                disabled: !unref(selectedModel),
                                type: "primary",
                                class: "!h-10",
                                onClick: handleSubmit
                            }, {
                                default: withCtx(function () {
                                    return _cache[7] || (_cache[7] = [createBaseVNode("i", {
                                        class: "i-ph:navigation-arrow-duotone mr-2"
                                    }, null, -1), createTextVNode(" 创建并执行分析任务 ")]);
                                }),
                                _: 1
                            }, 8, ["disabled"])])]), createVNode(_component_SimpleDialog, {
                                modelValue: unref(jobSuccess),
                                "onUpdate:modelValue": _cache[4] || (_cache[4] = function ($event) {
                                    return isRef(jobSuccess) ? jobSuccess.value = $event : null;
                                }),
                                class: "flex-center flex-col p-4 !h-50 !w-80"
                            }, {
                                default: withCtx(function () {
                                    return [_cache[13] || (_cache[13] = createBaseVNode("div", {
                                        class: "i-ph:check-circle-duotone mb-3 text-4rem text-green"
                                    }, null, -1)), _cache[14] || (_cache[14] = createBaseVNode("p", null, "任务已经开始执行", -1)), createBaseVNode("p", null, [_cache[10] || (_cache[10] = createTextVNode(" 请前往 ")), createVNode(_component_RouterLink, {
                                        to: "/job/list",
                                        class: "a-primary"
                                    }, {
                                        default: withCtx(function () {
                                            return _cache[9] || (_cache[9] = [createTextVNode(" 任务列表 ")]);
                                        }),
                                        _: 1
                                    }), _cache[11] || (_cache[11] = createTextVNode(" 页面进行查看 "))]), createVNode(_component_SimpleButton, {
                                        type: "primary",
                                        class: "mt-4",
                                        onClick: _cache[3] || (_cache[3] = function ($event) {
                                            return jobSuccess.value = false;
                                        })
                                    }, {
                                        default: withCtx(function () {
                                            return _cache[12] || (_cache[12] = [createTextVNode(" 好的 ")]);
                                        }),
                                        _: 1
                                    })];
                                }),
                                _: 1
                            }, 8, ["modelValue"])]);
                        };
                    }
                }));
            }
        };
    });
})();
